<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象扩展</title>
</head>
<body>
<script>
    let user ={
        id :10086,
        name :"欣小萌",
        age :20
    }

    let keys = Object.keys(user);
   // console.log(keys)
    console.log(user.id);
    keys.forEach(key=>{
        console.log(key+"="+user[key])
    })
    let values = Object.values(user);
    // console.log(values)


</script>
</body>
</html>